import request from '@/utils/request'
// 获取库位
export const getLocation = params => request.get('/api/location/pageDetail', { params })
// 删除库位
export const delLocation = params => request.delete('/api/location', { params })
// 修改库位
export const modifyLocation = data => request.put('/api/location', data)
// 添加库位
export const addLocation = data => request.post('/api/location', data)
// 获取库位详情
export const getLocationDetail = id => request.get('/api/location/' + id)
// 获取库位列表
export const getListDetail = params => request.get('/api/location/listDetail', { params })
